package design_pattern.lx3_single_pattern.lx_懒汉式1;

/**
 * @Author Mr.wang
 * @Description
 * @Date 2020-04-15
 */
public class SingletonPatternDemo {
    public static void main(String[] args) {
        // 获取唯一可用的对象
        Singleton instance = Singleton.getInstance();
        // 调用测试方法
        instance.showMessage();
    }
}
